package Expe7;

import java.util.Scanner;

/**
 * @Author sy
 * @Date 2022/10/4
 */
public class T3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("读取号码：");
        long phoneNum = in.nextLong();
        SIM c1 = new SIM(phoneNum);
        MobileTelephone p1 = new MobileTelephone();
        p1.setSIM(c1);
        System.out.println("手机号码："+p1.lookNum());
    }
}
class SIM{
    long num;
    SIM(long num){
        this.num=num;
    }
    long getNum(){
        return num;
    }
}
class MobileTelephone{
    SIM sim;
    void setSIM(SIM s){
        sim=s;
    }
    long lookNum(){
        return  sim.getNum();
    }
}
